package org.bigjava.travel.service;

import org.bigjava.travel.bean.Admin;

import java.util.List;

/**
 * 管理员的业务逻辑层<接口>
 */
public interface AdminService {

    public long count()throws Exception;

    public Admin login(String userName, String password)throws Exception;

    public Admin findById(Integer id)throws Exception;

    public List<Admin> findList()throws Exception;

    public void save(Admin admin)throws Exception;

    public void update(Admin admin)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<Admin> findByPage(int currentPage,int pageSize, String query)throws Exception;

    public Admin findByUserName(String userName);
}
